package books.ThinkingInJava.src.Chapter13;

import books.ThinkingInJava.src.Tools.Output;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.StringReader;
import java.util.Scanner;

public class TestInputString {

    public static BufferedReader buf = new BufferedReader(new StringReader("Well,\n now I'm back to java!"));

    public static void main(String[] args) {
        try {
            String name;
            name = buf.readLine();
            Output.println(name);
            Output.println(name);
        } catch (IOException ioe) {
            ioe.printStackTrace();
        }

        Scanner scan = new Scanner(System.in);
        Output.println(scan.next());
    }
}
